/*
 * Copyright (c) 2025 [ByteDance Ltd. and/or its affiliates.] and/or its affiliates
 * SPDX-License-Identifier: LGPL v2.1+
*/
#pragma once

#define TE_ERR_INVALID_PARAM                        -10005  ///< invalid parameter

#define TE_ERR_ENCRYPT_GET_PADDING_SIZE_FAILED          -40012  ///< get encrypt padding size failed
#define TE_ERR_DECRYPT_INVALID_TAG                      -40013  ///< invalid tag
#define TE_ERR_DECRYPT_INVALID_TAG_SIZE                 -40014  ///< invalid tag size
#define TE_ERR_DECRYPT_TAG_NOT_FOUND                    -40015  ///< tag not found
#define TE_ERR_DECRYPT_TYPE_NOT_SUPPORTED               -40016  ///< cryptor type not supported
#define TE_ERR_DECRYPT_LEN_NOT_MATCH                    -40017  ///< length not match
#define TE_ERR_DECRYPT_READ_SHA256_FAILED               -40020   ///< read sha256 data failed
#define TE_ERR_DECRYPT_SHA256_NOT_MATCH                 -40021   ///< sha256 not match
